  <!-- 头 -->
  <!-- 顶部 -->
  <div class='nav'>
    <div class="top">
      <ul class="nav-1">
  
        <div class="clear"></div>
     </ul>
     <div class="nav-right">
        <ul>
          <li>
            <a style="position:relative" href="/car">购物车
            <span class="guo">{{count(session('shop'))}}</span>
            </a>


          </li>

            @if(\Cookie::get('user')==null)

          <li><a class="zc" href="/userLogin">注册</a><span class="gang">|</span></li>
          <li><a class="dl" href="/user">登陆</a><span class="gang">|</span></li>
            @else
            <li><a class="zc" style="color:#fff; margin-right:10px;" href="/user/{{\Cookie::get('user')['id']}}55/edit">退出登录</a>
            <li ><a href="/user/{{\Cookie::get('user')['id']}}55">
                  <span style="color:#fff; margin-right:10px;"> {{\Cookie::get('userdetails')['nickname']}} </span>
                  </a>
            </li>
            @endif
        </ul>
      </div>
   </div>
  </div>
